import request from '@/utils/request'


/* 用户登录 */
export function login(account, password, platformCode) {
    return request({
        url: '/user/login',
        method: 'post',
        data: {
            account,
            password,
            platformCode
        }
    })
}
/* 根据token获取用户信息 */
export function getUserInfo(token) {
    return request({
        url: `/user/info/${token}`,
        method: 'post',
        data: {
            token
        }
    })
}
/* 退出登录 */
export function logout(token) {
    return request({
        url: '/user/logout',
        method: 'post',
        data: {
            token
        }
    })
}